package music

import (
	"dustbe/util"
	"fmt"
	"os"
	"runtime"
)

var (
	staffRoot     string
	StaffNumOnePage int = 9
	administraterName string = "kirigaya"
)

func init() {
	switch runtime.GOOS {
	case "windows":
		{
			staffRoot = "E:/AcademicData/Markdown/staff"
		}
	case "linux":
		{
			staffRoot = "/home/staff"
		}
	}

	blogRootExist, _ := util.CheckFilePath(staffRoot)

	if !util.Debug && !blogRootExist {
		fmt.Printf("staff root %s doesn't exist!\n", staffRoot)
		os.Exit(-1)
	}
}
